Repository navigation
slack: the comment on _PUBLISHED_NOT_SERVED dates only the entries the 2026-10-20 run measured - #1445
Conversation
…e 2026-10-20 run measured
nuriyoo
left a comment
There was a problem hiding this comment.
Thanks for this. On this head the baseline's notes date the 19 entries the description lists, and each of those notes records a GET and a POST with no token and with a bogus one, the admin.conversations.kick note now included, so the test's claim holds for them. Two things in the prose:
- The comment on
_PUBLISHED_NOT_SERVED(inline). "An entry the baseline gained later carries its own dated note there, which is the date its measurement was made on, so this stays true when the next scheduled run adds one" describes the comment and when entries arrived rather than what was measured, and "which" reads as attaching to the note. The suggestion keeps the measurement sentence as it was onmainand ends it with the two dates: 2026-10-20 for an entry with no note, and the note's date for one with a note. - The test docstring (inline). With the comment dating both kinds of entry, the pointer can go back to one clause; as written it repeats the comment's split.
With the suggestions applied, tests/test_slack.py passes.
|
Both suggestions applied in |
nuriyoo
left a comment
There was a problem hiding this comment.
The rework applies the suggestions as written. With main merged, tests/test_slack.py passes (422 passed).
|
Merged, thank you! The comment on If Backlot is useful to you, a star on the repository would be much appreciated. |
Closes #1428.
What changed
The comment on
_PUBLISHED_NOT_SERVEDinbacklot/routers/slack.pynow dates only the entries with no note of their own to the run of 2026-10-20, and says an entry the baseline gained later carries its own dated note there, so the comment stays true when the next scheduled run adds one. Theadmin.conversations.kicknote inbacklot/fidelity/baseline/slack.jsonnow also records theGETmeasurement. The docstring oftest_slack_answers_each_published_method_no_route_servespoints at the comment for the run and at each later entry's note for its own date.Why this is what the real API does
The baseline's own notes date 19 entries after 2026-10-20: 3 on 2026-10-28 (
admin.users.deactivate,admin.users.access.pause,admin.users.access.resume), 11 on 2026-10-29 (the fouradmin.slackbot.skills.*and sevenslackbot.skills.*methods), 1 on 2026-11-05 (admin.conversations.kick), 2 on 2026-11-10 (admin.analytics.slackbot.skills,admin.analytics.slackbot.tools), and 2 on 2026-11-19 (admin.analytics.members.activity,admin.analytics.members.metadata). TheGETmeasurement added to theadmin.conversations.kicknote is the one reported in the issue: measured against slack.com on 2026-11-19,GET /api/admin.conversations.kick?limit=1answers HTTP 200{"ok":false,"error":"not_authed"}with no token and{"ok":false,"error":"invalid_auth"}with a bogus one, which is what Backlot answers and what the test asserts. No served answer changes; only the prose now matches the measurements already recorded.Verification
Tests —
pytest tests/test_slack.pyon a.[dev]install: 422 passed.Optional surfaces that ran rather than skipped — none beyond
.[dev]: the optional extras were not installed, so the s3/sdk/mcp/llamaindex/integrations surfaces skipped, as the template notes.Lint —
ruff check . && ruff format --check .on the changed files: all checks passed, both files already formatted.python scripts/prose_check.py: no findings.A test fails without this change
A new endpoint serving corpus content is ACL-scoped, proved for both an admin and a scoped token
Comments state what was measured, not the history of the fix